runtime.mspan.allocCount (field)
33 uses
runtime (current package)
arena.go#L980: s.allocCount = 1
malloc.go#L903: s.allocCount++
malloc.go#L925: if uintptr(s.allocCount) != s.nelems {
malloc.go#L926: println("runtime: s.allocCount=", s.allocCount, "s.nelems=", s.nelems)
malloc.go#L941: s.allocCount++
malloc.go#L942: if uintptr(s.allocCount) > s.nelems {
malloc.go#L943: println("s.allocCount=", s.allocCount, "s.nelems=", s.nelems)
malloc.go#L1129: span.allocCount = 1
mcache.go#L151: if uintptr(s.allocCount) != s.nelems {
mcache.go#L163: slotsUsed := int64(s.allocCount) - int64(s.allocCountBeforeCache)
mcache.go#L187: if uintptr(s.allocCount) == s.nelems {
mcache.go#L196: s.allocCountBeforeCache = s.allocCount
mcache.go#L211: usedBytes := uintptr(s.allocCount) * s.elemsize
mcache.go#L269: slotsUsed := int64(s.allocCount) - int64(s.allocCountBeforeCache)
mcache.go#L287: dHeapLive -= int64(uintptr(s.nelems)-uintptr(s.allocCount)) * int64(s.elemsize)
mcentral.go#L176: n := int(s.nelems) - int(s.allocCount)
mcentral.go#L177: if n == 0 || s.freeindex == s.nelems || uintptr(s.allocCount) == s.nelems {
mcentral.go#L197: if s.allocCount == 0 {
mcentral.go#L230: if int(s.nelems)-int(s.allocCount) > 0 {
mgcsweep.go#L651: nfreed := s.allocCount - nalloc
mgcsweep.go#L652: if nalloc > s.allocCount {
mgcsweep.go#L655: print("runtime: nelems=", s.nelems, " nalloc=", nalloc, " previous allocCount=", s.allocCount, " nfreed=", nfreed, "\n")
mgcsweep.go#L659: s.allocCount = nalloc
mheap.go#L485: allocCount uint16 // number of allocated objects
mheap.go#L1596: if s.allocCount != 0 {
mheap.go#L1603: if s.allocCount != 0 || s.sweepgen != h.sweepgen {
mheap.go#L1604: print("mheap.freeSpanLocked - span ", s, " ptr ", hex(s.base()), " allocCount ", s.allocCount, " sweepgen ", s.sweepgen, "/", h.sweepgen, "\n")
mheap.go#L1684: span.allocCount = 0
stack.go#L203: if s.allocCount != 0 {
stack.go#L223: s.allocCount++
stack.go#L243: s.allocCount--
stack.go#L244: if gcphase == _GCoff && s.allocCount == 0 {
stack.go#L1229: if s.allocCount == 0 {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |